home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsIInterfaceInfoToIDL.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  102 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIInterfaceInfoToIDL.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIInterfaceInfoToIDL_h__
  6. #define __gen_nsIInterfaceInfoToIDL_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIInterfaceInfoToIDL */
  19. #define NS_IINTERFACEINFOTOIDL_IID_STR "b01eb40c-026b-49c9-af55-25e8c9d034c8"
  20.  
  21. #define NS_IINTERFACEINFOTOIDL_IID \
  22.   {0xb01eb40c, 0x026b, 0x49c9, \
  23.     { 0xaf, 0x55, 0x25, 0xe8, 0xc9, 0xd0, 0x34, 0xc8 }}
  24.  
  25. class NS_NO_VTABLE nsIInterfaceInfoToIDL : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IINTERFACEINFOTOIDL_IID)
  29.  
  30.   /* string generateIDL (in nsIIDRef aIID, in PRBool withIncludes, in PRBool withForwardDeclarations); */
  31.   NS_IMETHOD GenerateIDL(const nsIID & aIID, PRBool withIncludes, PRBool withForwardDeclarations, char **_retval) = 0;
  32.  
  33.   /* void getReferencedInterfaceNames (in nsIIDRef aIID, out PRUint32 aArrayLength, [array, size_is (aArrayLength), retval] out string aNames); */
  34.   NS_IMETHOD GetReferencedInterfaceNames(const nsIID & aIID, PRUint32 *aArrayLength, char ***aNames) = 0;
  35.  
  36. };
  37.  
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSIINTERFACEINFOTOIDL \
  40.   NS_IMETHOD GenerateIDL(const nsIID & aIID, PRBool withIncludes, PRBool withForwardDeclarations, char **_retval); \
  41.   NS_IMETHOD GetReferencedInterfaceNames(const nsIID & aIID, PRUint32 *aArrayLength, char ***aNames); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIINTERFACEINFOTOIDL(_to) \
  45.   NS_IMETHOD GenerateIDL(const nsIID & aIID, PRBool withIncludes, PRBool withForwardDeclarations, char **_retval) { return _to GenerateIDL(aIID, withIncludes, withForwardDeclarations, _retval); } \
  46.   NS_IMETHOD GetReferencedInterfaceNames(const nsIID & aIID, PRUint32 *aArrayLength, char ***aNames) { return _to GetReferencedInterfaceNames(aIID, aArrayLength, aNames); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIINTERFACEINFOTOIDL(_to) \
  50.   NS_IMETHOD GenerateIDL(const nsIID & aIID, PRBool withIncludes, PRBool withForwardDeclarations, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateIDL(aIID, withIncludes, withForwardDeclarations, _retval); } \
  51.   NS_IMETHOD GetReferencedInterfaceNames(const nsIID & aIID, PRUint32 *aArrayLength, char ***aNames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferencedInterfaceNames(aIID, aArrayLength, aNames); } 
  52.  
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55.  
  56. /* Header file */
  57. class nsInterfaceInfoToIDL : public nsIInterfaceInfoToIDL
  58. {
  59. public:
  60.   NS_DECL_ISUPPORTS
  61.   NS_DECL_NSIINTERFACEINFOTOIDL
  62.  
  63.   nsInterfaceInfoToIDL();
  64.  
  65. private:
  66.   ~nsInterfaceInfoToIDL();
  67.  
  68. protected:
  69.   /* additional members */
  70. };
  71.  
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsInterfaceInfoToIDL, nsIInterfaceInfoToIDL)
  74.  
  75. nsInterfaceInfoToIDL::nsInterfaceInfoToIDL()
  76. {
  77.   /* member initializers and constructor code */
  78. }
  79.  
  80. nsInterfaceInfoToIDL::~nsInterfaceInfoToIDL()
  81. {
  82.   /* destructor code */
  83. }
  84.  
  85. /* string generateIDL (in nsIIDRef aIID, in PRBool withIncludes, in PRBool withForwardDeclarations); */
  86. NS_IMETHODIMP nsInterfaceInfoToIDL::GenerateIDL(const nsIID & aIID, PRBool withIncludes, PRBool withForwardDeclarations, char **_retval)
  87. {
  88.     return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90.  
  91. /* void getReferencedInterfaceNames (in nsIIDRef aIID, out PRUint32 aArrayLength, [array, size_is (aArrayLength), retval] out string aNames); */
  92. NS_IMETHODIMP nsInterfaceInfoToIDL::GetReferencedInterfaceNames(const nsIID & aIID, PRUint32 *aArrayLength, char ***aNames)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* End of implementation class template. */
  98. #endif
  99.  
  100.  
  101. #endif /* __gen_nsIInterfaceInfoToIDL_h__ */
  102.